package com.zzedu.framework.config;

import com.google.code.kaptcha.text.impl.DefaultTextCreator;
import org.apache.commons.lang3.RandomStringUtils;

/**
 * 纯数字验证码
 * 
 * @author smarthome
 */
public class KaptchaNumberCreator extends DefaultTextCreator
{

    @Override
    public String getText()
    {

        int length = getConfig().getTextProducerCharLength();
        String str=RandomStringUtils.randomNumeric(length);
        return str;
    }
}
